package com.tomcov.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class NewMessagePlace extends Place{
	
	private String NewMessageName;

    public NewMessagePlace(String token) {
        this.NewMessageName = token;
    }

    public String getNewMessageName() {
        return NewMessageName;
    }


    public static class Tokenizer implements PlaceTokenizer<NewMessagePlace> {
        @Override
        public String getToken(NewMessagePlace place) {
            return place.getNewMessageName();
        }

        @Override
        public NewMessagePlace getPlace(String token) {
            return new NewMessagePlace(token);
        }
    }

}